package com.yuyang.wifi.utils;

import java.util.Arrays;
import java.util.List;

public class ArrayToListUtils {

    //集合转数组
    public static String[] listToArray(List<String> dataList) {
        String[] stringTitles = dataList.toArray(new String[dataList.size()]);
        return stringTitles;
    }

    //数组转集合
    public static List<String> arrayToList(String[] array) {
        List<String> list = Arrays.asList(array);
        return list;
    }
}
